Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #1755 aucr cmax r not calculated properly #2093

Merged
merged 1 commit into from
Feb 15, 2022

Conversation

msevestre
Copy link
Member

No description provided.

@msevestre
Copy link
Member Author

@Yuri05 can you revuiew this?

@msevestre msevestre requested a review from Yuri05 February 14, 2022 12:55
return schemaItem.ApplicationType == ApplicationTypes.Intravenous || schemaItem.ApplicationType == ApplicationTypes.IntravenousBolus;
}

private ApplicationType applicationTypeFor(Simulation simulation, Compound compound)
{
var numberOfApplications = schemaItemsFrom(simulation, compound).Count;
var numberOfApplications = simulation.AllApplicationParametersOrderedByStartTimeFor(compound.Name).Count;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only relevant difference, correct?
For a metabolite (which is not administered) number of applications was zero before; now it is number of applications of its parent drug, right?

By the way, I would rename the function AllApplicationParametersOrderedByStartTimeFor to something like AllOrderedApplicationStartTimes.
Because in AllApplicationParameters I would expect also all other application parameters like e.g. DrugMass, InfusionTime etc. (I had to look into the implementation of the function to understand what it does)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok but this is in core so not directly relevant to this problem. Please create an issue for this

For a metabolite (which is not administered) number of applications was zero before; now it is number of applications of its parent drug, right?

yes

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue created: Open-Systems-Pharmacology/OSPSuite.Core#1494
PR looks good for me

@msevestre msevestre merged commit 0cd6a56 into develop Feb 15, 2022
@msevestre msevestre deleted the 1755-aucr-cmaxr-not-calculated-properly branch February 15, 2022 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants